package com.rjgc.title.controller.apply;


import com.rjgc.title.common.result.Result;
import com.rjgc.title.model.entity.apply.Autobiography;
import com.rjgc.title.service.AutobiographyService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 个人自传 前端控制器
 * </p>
 *
 * @author 卓抱抱
 * @since 2022-04-26
 */
@Api(tags = "个人自传 ")
@RestController
@RequestMapping("/api/autobiography")
public class AutobiographyController {

    @Autowired
    private AutobiographyService autobiographyService;

    @PostMapping("inner/save")
    public Result save(@RequestBody Autobiography autobiography) {
        autobiographyService.save(autobiography);

        return Result.ok();
    }

}

